!{include file='common/iheader.htm'}
<div id="i_nav">
	<h3 class="page_title">用户角色编辑</h3>
	!{if $smarty.request.id}
	<a class="button" href="/manager.php?app=role&act=edit">添加用户角色</a>
	!{/if}
	<a class="button" href="/manager.php?app=role">用户角色管理</a>
	<a class="button" href="/manager.php?app=user">用户管理</a>
</div>
<form action="/manager.php?app=role&act=edit" method="post" class="form" id="role_form" url="/manager.php?app=role">
	<div class="tabs">
		<ul>
			<li><a href="#base">基本信息</a></li>
			<li><a href="#acl">权限设置</a></li>
		</ul>
		<div id="base">
			<div class="form_item">
				<strong>角色名称：</strong>
				<div><input type="text" name="name" class="text_input" value="!{$role.name}"/></div>
				<p></p>
			</div>
			<div class="form_item">
				<strong>描述：</strong>
				<div><textarea name="desc">!{$role.desc}</textarea></div>
				<p></p>
			</div>
		</div>
		<div id="acl">
			!{include file='acl/list.htm'}
		</div>
	</div>
	
	<div class="form_item form_btn_item">
		<input type="hidden" name="id" value="!{$smarty.request.id|default:0}"/>
		<input type="button" value="保存" class="button submit_btn">
	</div>
</form>
<script type="text/javascript">
	$(function(){
		$("#role_form").ajax_form({'submit_btn' : '.submit_btn'});
	});
</script>
!{include file='common/ifooter.htm'}